package com.qf.feign.api;

import com.qf.vo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "address", path = "/address")
public interface AddressService {

    @RequestMapping("/getAddressListByUid/{uid}")
    public List<Address> getAddressListByUid(@PathVariable("uid") Integer uid);

    @RequestMapping("/save")
    public Boolean save(Address address);

    @GetMapping("/getAddressByUid/{id}")
    Address getAddressByUid(@PathVariable("id") Integer id);
}
